# 输出Yolo预测结果
from ultralytics import YOLO

# model_path  权重文件路径
model = YOLO("model_path")

# image_path 所要预测图片的路径
results = model("image_path")

# 输出预测结果
print(results)